package io.sage.modules.employer.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.Page;

import io.sage.modules.employer.entity.Employer;
import io.sage.modules.employer.entity.EmployerExample;

public interface employerMapper {
    int countByExample(EmployerExample example);

    int deleteByExample(EmployerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Employer record);

    int insertSelective(Employer record);

    List<Employer> selectByExample(EmployerExample example);

    Employer selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Employer record, @Param("example") EmployerExample example);

    int updateByExample(@Param("record") Employer record, @Param("example") EmployerExample example);

    int updateByPrimaryKeySelective(Employer record);

    int updateByPrimaryKey(Employer record);
    
    //列表.
    List<Employer> selectStudentList(Page<Employer> page, Map<String, Object> params);
    
    List<Employer> selectStudentList(Map<String, Object> params);
    
    //列表.
    List<String> getStudentList(Map<String, Object> params);
    //批量删除.
    int deleteBatchIds(Integer[] ids);
    //批量添加.
    int insertByBatch(List<Employer> attachmentTables);
    
    //根据名字查询数据.
    Employer selectByUserName(String userName);
    
    /**
     * 关联查询数据
     * @param id
     * @return
     */
    Employer selectById(Integer id);
}